#pragma once

#include "DialogExt.h"


// CDialogChildBase dialog
class CDialogChildBase : public CDialogExt
{
public:
	CDialogChildBase(UINT nIDTemplate, UINT nBkID, CWnd* pParent = NULL);   // standard constructor
	virtual ~CDialogChildBase();

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	virtual bool OnInitChildControls()=0;
	virtual bool OnInitCommonControls();
	virtual void SetBackground(int nId);
	DECLARE_MESSAGE_MAP()

public:
	virtual BOOL OnInitDialog();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	virtual BOOL PreTranslateMessage(MSG* pMsg);

	virtual void ForcedCloseChildDialog(){};
};
